]> dgit.raspbian.org Git - gnome-shell.git/commit
windowManager: Handle window dimming animation getting cancelled
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 30 Jun 2022 07:40:51 +0000 (09:40 +0200)
committerMarge Bot <marge-bot@gnome.org>
Sat, 2 Jul 2022 00:39:49 +0000 (00:39 +0000)
commit4fd2719dc53ba77a0d85fe1ed569634f8bcd88fe
tree5c903915e7e7e48a8d3f7c962ad4ee326cd47baf
parent31acf30bfaa21369e125dd3f2e7b19e28b9d1d0b
windowManager: Handle window dimming animation getting cancelled

When a window with a modal dialog gets minimized and at the same time
the dialog is closed, the WindowDimmer undim animation starts and gets
cancelled when the minimize animation is done, because that unmaps the
window actor.

In this case we want ensure the dimming effect still goes into a
proper state instead of being stuck mid-animation, so listen to
onStopped instead of onComplete for syncing state of the window dimmer.

While at it, clean things up a little and move the check for the
attach-modal-dialogs pref inside the _syncEnabled() function.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5581

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2349>
js/ui/windowManager.js